package com.gbei.center.oauth.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "auth_refresh_token")
public class AuthRefreshToken {
    @Id
    private Integer id;

    /**
     * 关联的表auth_access_token对应的Access Token记录
     */
    @Column(name = "token_id")
    private Integer tokenId;

    /**
     * Refresh Token
     */
    @Column(name = "refresh_token")
    private String refreshToken;

    /**
     * 过期时间戳
     */
    @Column(name = "expires_in")
    private Long expiresIn;

    @Column(name = "create_user")
    private String createUser;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_user")
    private String updateUser;

    @Column(name = "update_time")
    private Date updateTime;

}